﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace devicesDll
{
    public delegate void ElementAddedEventHandler(object sender, EventArgs e);
    public class QueryQueue:List<SingleQuery>
    {
        public event ElementAddedEventHandler ElementsAdded;
        public QueryQueue()
        {
        }

        public void AddQuery(SingleQuery item)
        {
            Add(item);
            if (ElementsAdded != null)
                ElementsAdded(this, EventArgs.Empty);

        }

        public void AddQueryRange(SingleQuery[] item)
        {
            AddRange(item);
            if (ElementsAdded != null)
                ElementsAdded(this, EventArgs.Empty);
        }

    }
}
